package com.jy.api.enums;

/**
 * Created by lihu on 2017/10/9.
 * 威福通请求类型
 */
public enum PayTypeEnum {

    PAY_ALIPAY_NATIVE("pay.alipay.native", "支付宝扫码支付"),
    PAY_WX_NATIVE("pay.weixin.native", "微信扫码支付"),
    UNIFIED_TRADE_MICROPAY("unified.trade.micropay", "刷卡支付"),
    UNIFIED_TRADE_QUERY("unified.trade.query", "支付结果查询"),
    PAY_WEIXIN_JSPAY("pay.weixin.jspay", "微信公众号支付"),
    UNIFIED_TRADE_CLOSE("unified.micropay.reverse", "二维码关闭订单"),
    UNIFIED_MICROPAY_REVERSE("unified.micropay.reverse", "二维码关闭订单"),
    UNIFIED_TRADE_REFUND("unified.trade.refund", "支付退款"),
    UNIFIED_TRADE_REFUNDQUERY ("unified.trade.refundquery","支付退款查询"),
    UNIFIED_WEIXIN_OR_ALPAY_CLOSE("unified.trade.close","微信二维码关闭订单");
    /**
     * 枚举值
     */
    private final String code;

    /**
     * 枚举描述
     */
    private final String message;

    /**
     * 构造一个<code>LocalCacheEnum</code>枚举对象
     *
     * @param code
     * @param message
     */
    private PayTypeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    /**
     * @return Returns the code.
     */
    public String getCode() {
        return code;
    }

    /**
     * @return Returns the message.
     */
    public String getMessage() {
        return message;
    }

}
